package com.glls.java2212.mapper;

import com.glls.java2212.pojo.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import java.util.List;
import java.util.Map;

public interface StudentMapper {
    List<Student> selectByParams(Map<String, Object> params);

    @Delete("delete from t_user where id = #{id}")
    int deleteStudentById(Integer id);

    @Insert("insert into t_user (id,name,age,birthday) values (#{id},#{name},#{age},#{birthday})")
    int addStudent(Student data);
}
